
<div class="container">
    <div class="row">
        <div class="col-sm-6">
            <h2>Panel zmiany hasła</h2>
            <?php $form = $this->beginWidget('CActiveForm', array('id' => 'change-password-client-form')); ?>

            <div class="form-group">
                <?php echo $form->labelEx($model, 'oldpassword'); ?>
                <?php echo $form->passwordField($model, 'oldpassword', array('class' => 'form-control')) ?>
                <?php echo $form->error($model, 'oldpassword') ?>
            </div>

            <div class="form-group">
                <?php echo $form->labelEx($model, 'newpassword'); ?>
                <?php echo $form->passwordField($model, 'newpassword', array('class' => 'form-control')) ?>
                <?php echo $form->error($model, 'newpassword') ?>
            </div>
            
            <div class="form-group">
                <?php echo $form->labelEx($model, 'newpassword_repeat'); ?>
                <?php echo $form->passwordField($model, 'newpassword_repeat', array('class' => 'form-control')) ?>
                <?php echo $form->error($model, 'newpassword_repeat') ?>
            </div>

            <?php echo CHtml::submitButton('Zmień hasło', array('class' => 'btn btn-success')); ?>

            <?php $this->endWidget(); ?>
        </div>
    </div>
</div>